import model.Model;
import view.View;
import controller.Controller;
import controller.KeyListeners.KeyListenerSet;
import clock.Clock;
/**
 * Initiates the game. Sets up the links between the controller and clock and
 * between the modle, view, and clock.
 *
 * @author joseph
 */
public class RunGame {
    public static void main(String args[]){
        Model model = new Model();
        Clock clock = new Clock();
        Controller controller = new Controller(clock, model);
        View view = new View(model, controller);
        clock.setModel(model);
        clock.setView(view);
        clock.start();
        view.addKeyListeners(controller.getListeners());
        //clock.start();
/*
        model.setController(controller);
        model.setView(view);
        view.setModel(model);
*/
    }
}
